package com.yonyougov.devops.cruxcisupport.server.dto;

import com.yonyougov.devops.fwc.api.dto.BaseRequestDto;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.math.BigInteger;

@EqualsAndHashCode(callSuper = true)
@Data
@ApiModel(value = "Server新增")
public class ServerAddOrUpdateRequestDto extends BaseRequestDto {

    @ApiModelProperty(value = "用户主键")
    private BigInteger id;

    @ApiModelProperty(value = "server名称")
    private String name;

    @ApiModelProperty(value = "内网ip")
    private String innerIp;

    @ApiModelProperty(value = "ip")
    private String ip;

    @ApiModelProperty(value = "user name")
    private String username;

    @ApiModelProperty(value = "密码")
    private String password;

    @ApiModelProperty(value = "连接端口号")
    private Integer port;

    @ApiModelProperty(value = "连接类型")
    private Integer connectType;

    @ApiModelProperty(value = "申请人")
    private BigInteger createUserId;

    @ApiModelProperty(value = "备注")
    private String remark;

}
